package com.yy.controller;

import com.yy.service.MysqlStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StockController {
    @Autowired
    MysqlStockService stockService;
    // RedisStockService stockService;
    // ZkStockService stockService;

    @GetMapping("/stock/deduct")
    public String deduct() {
        stockService.deduct();
        return "product stock deducted";
    }
}
